<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: src/ftp.cpp 文件参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle"><div class="title">ftp.cpp 文件参考</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;unistd.h&gt;</code><br />
<code>#include &lt;thread&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;algorithm&gt;</code><br />
<code>#include &lt;regex&gt;</code><br />
<code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &lt;sstream&gt;</code><br />
<code>#include &lt;fstream&gt;</code><br />
<code>#include &lt;curl/curl.h&gt;</code><br />
<code>#include &quot;<a class="el" href="../../d5/d3a/url_8hpp_source.html">url.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../d0/d0e/misc_8hpp_source.html">misc.hpp</a>&quot;</code><br />
<code>#include &quot;ftp.hpp&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
ftp.cpp 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/df9/ftp_8cpp__incl.png" border="0" usemap="#asrc_2ftp_8cpp" alt=""/></div>
<map name="asrc_2ftp_8cpp" id="asrc_2ftp_8cpp">
<area shape="rect" title=" " alt="" coords="599,5,683,32"/>
<area shape="rect" title=" " alt="" coords="77,80,144,107"/>
<area shape="poly" title=" " alt="" coords="599,26,412,45,289,61,160,82,159,77,288,56,412,39,599,21"/>
<area shape="rect" title=" " alt="" coords="168,80,226,107"/>
<area shape="poly" title=" " alt="" coords="600,28,443,49,245,83,241,84,240,78,245,77,443,44,599,22"/>
<area shape="rect" title=" " alt="" coords="5,379,77,405"/>
<area shape="poly" title=" " alt="" coords="599,30,506,49,395,79,345,98,304,120,276,143,269,155,266,167,266,244,261,262,247,280,200,315,141,348,86,375,84,370,139,343,197,311,243,276,256,259,261,244,261,166,264,153,272,139,301,115,343,93,393,74,504,44,598,25"/>
<area shape="rect" title=" " alt="" coords="560,80,634,107"/>
<area shape="poly" title=" " alt="" coords="636,34,615,68,610,65,631,31"/>
<area shape="rect" title=" " alt="" coords="658,80,712,107"/>
<area shape="poly" title=" " alt="" coords="651,31,672,65,667,68,646,34"/>
<area shape="rect" title=" " alt="" coords="736,80,799,107"/>
<area shape="poly" title=" " alt="" coords="664,30,734,70,731,74,662,35"/>
<area shape="rect" title=" " alt="" coords="823,80,891,107"/>
<area shape="poly" title=" " alt="" coords="679,30,809,73,807,78,678,35"/>
<area shape="rect" title=" " alt="" coords="915,80,980,107"/>
<area shape="poly" title=" " alt="" coords="684,26,901,77,899,82,682,32"/>
<area shape="rect" title=" " alt="" coords="1004,80,1083,107"/>
<area shape="poly" title=" " alt="" coords="683,24,816,45,990,77,989,82,815,50,682,29"/>
<area shape="rect" href="../../d5/d3a/url_8hpp.html" title=" " alt="" coords="475,80,535,107"/>
<area shape="poly" title=" " alt="" coords="619,35,543,75,541,70,616,30"/>
<area shape="rect" href="../../d0/d0e/misc_8hpp.html" title=" " alt="" coords="468,155,542,181"/>
<area shape="poly" title=" " alt="" coords="599,24,565,28,527,38,492,55,465,81,459,96,462,111,482,142,478,145,457,113,454,96,460,79,489,51,525,33,564,23,599,18"/>
<area shape="rect" title=" " alt="" coords="1106,80,1168,107"/>
<area shape="poly" title=" " alt="" coords="683,21,858,40,972,56,1092,77,1091,82,972,61,857,45,683,26"/>
<area shape="rect" title=" " alt="" coords="688,304,741,331"/>
<area shape="poly" title=" " alt="" coords="519,105,694,291,690,294,515,109"/>
<area shape="rect" title=" " alt="" coords="802,155,848,181"/>
<area shape="poly" title=" " alt="" coords="536,101,548,104,666,128,784,152,788,153,786,158,783,157,665,133,547,109,535,106"/>
<area shape="poly" title=" " alt="" coords="508,107,508,139,502,139,502,107"/>
<area shape="poly" title=" " alt="" coords="490,184,284,333,233,353,191,363,92,380,91,375,190,357,231,348,281,328,487,180"/>
<area shape="poly" title=" " alt="" coords="524,180,686,293,683,297,521,184"/>
<area shape="rect" title=" " alt="" coords="493,453,570,480"/>
<area shape="poly" title=" " alt="" coords="543,174,595,189,654,214,684,231,711,251,736,275,755,303,764,331,758,357,741,380,716,400,685,418,651,433,586,455,584,450,649,428,683,413,713,396,738,377,754,355,759,331,751,305,732,278,708,255,681,235,652,219,593,194,542,179"/>
<area shape="rect" title=" " alt="" coords="436,229,494,256"/>
<area shape="poly" title=" " alt="" coords="500,183,482,217,477,214,496,181"/>
<area shape="rect" href="../../d8/d68/fs_8hpp.html" title=" " alt="" coords="518,229,575,256"/>
<area shape="poly" title=" " alt="" coords="515,181,534,215,529,217,510,183"/>
<area shape="poly" title=" " alt="" coords="577,254,674,296,672,301,575,259"/>
<area shape="poly" title=" " alt="" coords="551,256,558,290,574,329,591,350,609,366,621,383,622,394,618,407,600,430,576,448,573,443,596,426,613,404,617,393,616,385,605,370,587,354,569,332,553,292,546,257"/>
<area shape="rect" title=" " alt="" coords="584,304,663,331"/>
<area shape="poly" title=" " alt="" coords="562,255,601,291,597,295,558,258"/>
<area shape="rect" title=" " alt="" coords="445,304,509,331"/>
<area shape="poly" title=" " alt="" coords="536,258,501,294,498,291,532,255"/>
<area shape="rect" href="../../de/dfd/tree_8hpp.html" title=" " alt="" coords="352,304,420,331"/>
<area shape="poly" title=" " alt="" coords="520,259,429,300,427,295,517,254"/>
<area shape="poly" title=" " alt="" coords="353,329,334,333,214,356,92,380,91,375,213,351,332,328,351,324"/>
<area shape="poly" title=" " alt="" coords="395,329,418,364,450,403,499,443,496,447,446,407,413,367,391,332"/>
<area shape="rect" title=" " alt="" coords="224,379,292,405"/>
<area shape="poly" title=" " alt="" coords="365,334,295,373,293,368,363,329"/>
<area shape="rect" title=" " alt="" coords="316,379,384,405"/>
<area shape="poly" title=" " alt="" coords="382,332,366,366,361,363,378,330"/>
<area shape="rect" title=" " alt="" coords="459,379,498,405"/>
<area shape="poly" title=" " alt="" coords="404,329,452,367,449,371,401,333"/>
<area shape="rect" title=" " alt="" coords="521,379,604,405"/>
<area shape="poly" title=" " alt="" coords="418,329,518,370,516,375,416,334"/>
<area shape="rect" href="../../d6/de9/typetraits_8hpp.html" title=" " alt="" coords="100,379,200,405"/>
<area shape="poly" title=" " alt="" coords="352,332,207,376,205,371,351,327"/>
<area shape="poly" title=" " alt="" coords="201,401,212,403,478,453,477,458,211,408,200,406"/>
</map>
</div>
</div>
<p><a href="../../de/de3/ftp_8cpp_source.html">浏览该文件的源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ad907952d4633c663a0140a166182e127" id="r_ad907952d4633c663a0140a166182e127"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad907952d4633c663a0140a166182e127">onChkInst</a> (char *buffer, size_t size, size_t nitems, void *userdata)</td></tr>
<tr class="memdesc:ad907952d4633c663a0140a166182e127"><td class="mdescLeft">&#160;</td><td class="mdescRight">检查服务器支持的指令操作数据回调函数。这个函数有CURL调用  <br /></td></tr>
<tr class="separator:ad907952d4633c663a0140a166182e127"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad30d7938b76217dec401f1e4872fe70e" id="r_ad30d7938b76217dec401f1e4872fe70e"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad30d7938b76217dec401f1e4872fe70e">onConnectCb</a> (char *ptr, size_t, size_t nmemb, void *userdata)</td></tr>
<tr class="memdesc:ad30d7938b76217dec401f1e4872fe70e"><td class="mdescLeft">&#160;</td><td class="mdescRight">连接成功操作回调函数  <br /></td></tr>
<tr class="separator:ad30d7938b76217dec401f1e4872fe70e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c938fd613f155400fd8332835359f7c" id="r_a1c938fd613f155400fd8332835359f7c"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1c938fd613f155400fd8332835359f7c">ftp_write_callback</a> (char *ptr, size_t size, size_t nmemb, void *userdata)</td></tr>
<tr class="memdesc:a1c938fd613f155400fd8332835359f7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">CURL 本地写入回调函数  <br /></td></tr>
<tr class="separator:a1c938fd613f155400fd8332835359f7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acacdb16f13dfa548fed1489bb0377672" id="r_acacdb16f13dfa548fed1489bb0377672"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#acacdb16f13dfa548fed1489bb0377672">ftp_write_cb_data</a> (char *ptr, size_t size, size_t nmemb, void *userdata)</td></tr>
<tr class="separator:acacdb16f13dfa548fed1489bb0377672"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ae893c969c2ac5d8ba25739abc68730" id="r_a5ae893c969c2ac5d8ba25739abc68730"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5ae893c969c2ac5d8ba25739abc68730">ftp_read_callback</a> (char *buffer, size_t size, size_t nitems, void *userdata)</td></tr>
<tr class="memdesc:a5ae893c969c2ac5d8ba25739abc68730"><td class="mdescLeft">&#160;</td><td class="mdescRight">本地读取数据回调函数  <br /></td></tr>
<tr class="separator:a5ae893c969c2ac5d8ba25739abc68730"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7f64eceebc17730a633c60e90147b75" id="r_af7f64eceebc17730a633c60e90147b75"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af7f64eceebc17730a633c60e90147b75">on_upld_progress</a> (void *clientp, curl_off_t dltotal, curl_off_t dlnow, curl_off_t ultotal, curl_off_t ulnow)</td></tr>
<tr class="separator:af7f64eceebc17730a633c60e90147b75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57c3e910f6269807ad612ff5b4b281c8" id="r_a57c3e910f6269807ad612ff5b4b281c8"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a57c3e910f6269807ad612ff5b4b281c8">on_ftp_size</a> (char *ptr, size_t size, size_t nmemb, void *userdata)</td></tr>
<tr class="memdesc:a57c3e910f6269807ad612ff5b4b281c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">查询文件大小的回调操作函数  <br /></td></tr>
<tr class="separator:a57c3e910f6269807ad612ff5b4b281c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe03125733ec7a3f07754578f06a3781" id="r_abe03125733ec7a3f07754578f06a3781"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abe03125733ec7a3f07754578f06a3781">on_nlist</a> (char *ptr, size_t size, size_t nmemb, void *userdata)</td></tr>
<tr class="memdesc:abe03125733ec7a3f07754578f06a3781"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取文件列表的回调操作函数  <br /></td></tr>
<tr class="separator:abe03125733ec7a3f07754578f06a3781"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="a5ae893c969c2ac5d8ba25739abc68730" name="a5ae893c969c2ac5d8ba25739abc68730"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ae893c969c2ac5d8ba25739abc68730">&#9670;&#160;</a></span>ftp_read_callback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ftp_read_callback </td>
          <td>(</td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>buffer</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>size</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>nitems</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>userdata</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>本地读取数据回调函数 </p>

<p class="definition">在文件 <a class="el" href="../../de/de3/ftp_8cpp_source.html">ftp.cpp</a> 第 <a class="el" href="../../de/de3/ftp_8cpp_source.html#l00132">132</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/de3/ftp_8cpp_a5ae893c969c2ac5d8ba25739abc68730_cgraph.png" border="0" usemap="#ade/de3/ftp_8cpp_a5ae893c969c2ac5d8ba25739abc68730_cgraph" alt=""/></div>
<map name="ade/de3/ftp_8cpp_a5ae893c969c2ac5d8ba25739abc68730_cgraph" id="ade/de3/ftp_8cpp_a5ae893c969c2ac5d8ba25739abc68730_cgraph">
<area shape="rect" title="本地读取数据回调函数" alt="" coords="5,5,129,32"/>
<area shape="rect" href="../../d2/d96/classwheels_1_1rc_ftp.html#af65aae7b4ab5d806c0c89867dc35d7f1" title=" " alt="" coords="177,5,332,32"/>
<area shape="poly" title=" " alt="" coords="129,16,161,16,161,21,129,21"/>
</map>
</div>

</div>
</div>
<a id="a1c938fd613f155400fd8332835359f7c" name="a1c938fd613f155400fd8332835359f7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c938fd613f155400fd8332835359f7c">&#9670;&#160;</a></span>ftp_write_callback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ftp_write_callback </td>
          <td>(</td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>ptr</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>size</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>nmemb</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>userdata</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>CURL 本地写入回调函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ptr[</td><td>I ] 数据指针 </td></tr>
    <tr><td class="paramname">size[</td><td>I ] 总是是 1 </td></tr>
    <tr><td class="paramname">nmemb[</td><td>I ] 数据长度 </td></tr>
    <tr><td class="paramname">userdata[</td><td>I ] 用户定义数量 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>接收到数据长度 </dd></dl>

<p class="definition">在文件 <a class="el" href="../../de/de3/ftp_8cpp_source.html">ftp.cpp</a> 第 <a class="el" href="../../de/de3/ftp_8cpp_source.html#l00075">75</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/de3/ftp_8cpp_a1c938fd613f155400fd8332835359f7c_cgraph.png" border="0" usemap="#ade/de3/ftp_8cpp_a1c938fd613f155400fd8332835359f7c_cgraph" alt=""/></div>
<map name="ade/de3/ftp_8cpp_a1c938fd613f155400fd8332835359f7c_cgraph" id="ade/de3/ftp_8cpp_a1c938fd613f155400fd8332835359f7c_cgraph">
<area shape="rect" title="CURL 本地写入回调函数" alt="" coords="5,5,132,32"/>
<area shape="rect" href="../../d2/d96/classwheels_1_1rc_ftp.html#a6d70210f18843851ad3923b3404ad215" title="接收到数据的回调函数" alt="" coords="180,5,334,32"/>
<area shape="poly" title=" " alt="" coords="132,16,164,16,164,21,132,21"/>
</map>
</div>

</div>
</div>
<a id="acacdb16f13dfa548fed1489bb0377672" name="acacdb16f13dfa548fed1489bb0377672"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acacdb16f13dfa548fed1489bb0377672">&#9670;&#160;</a></span>ftp_write_cb_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ftp_write_cb_data </td>
          <td>(</td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>ptr</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>size</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>nmemb</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>userdata</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../de/de3/ftp_8cpp_source.html">ftp.cpp</a> 第 <a class="el" href="../../de/de3/ftp_8cpp_source.html#l00103">103</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/de3/ftp_8cpp_acacdb16f13dfa548fed1489bb0377672_cgraph.png" border="0" usemap="#ade/de3/ftp_8cpp_acacdb16f13dfa548fed1489bb0377672_cgraph" alt=""/></div>
<map name="ade/de3/ftp_8cpp_acacdb16f13dfa548fed1489bb0377672_cgraph" id="ade/de3/ftp_8cpp_acacdb16f13dfa548fed1489bb0377672_cgraph">
<area shape="rect" title=" " alt="" coords="5,31,130,57"/>
<area shape="rect" href="../../d2/d96/classwheels_1_1rc_ftp.html#af65aae7b4ab5d806c0c89867dc35d7f1" title=" " alt="" coords="193,5,348,32"/>
<area shape="poly" title=" " alt="" coords="130,34,177,28,178,33,130,39"/>
<area shape="rect" href="../../d2/d96/classwheels_1_1rc_ftp.html#a6737af239f3babc772fdab3872184f8e" title=" " alt="" coords="178,56,364,83"/>
<area shape="poly" title=" " alt="" coords="130,49,163,53,162,58,130,54"/>
</map>
</div>

</div>
</div>
<a id="a57c3e910f6269807ad612ff5b4b281c8" name="a57c3e910f6269807ad612ff5b4b281c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57c3e910f6269807ad612ff5b4b281c8">&#9670;&#160;</a></span>on_ftp_size()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t on_ftp_size </td>
          <td>(</td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>ptr</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>size</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>nmemb</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>userdata</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>查询文件大小的回调操作函数 </p>

<p class="definition">在文件 <a class="el" href="../../de/de3/ftp_8cpp_source.html">ftp.cpp</a> 第 <a class="el" href="../../de/de3/ftp_8cpp_source.html#l00176">176</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/de3/ftp_8cpp_a57c3e910f6269807ad612ff5b4b281c8_cgraph.png" border="0" usemap="#ade/de3/ftp_8cpp_a57c3e910f6269807ad612ff5b4b281c8_cgraph" alt=""/></div>
<map name="ade/de3/ftp_8cpp_a57c3e910f6269807ad612ff5b4b281c8_cgraph" id="ade/de3/ftp_8cpp_a57c3e910f6269807ad612ff5b4b281c8_cgraph">
<area shape="rect" title="查询文件大小的回调操作函数" alt="" coords="5,5,94,32"/>
<area shape="rect" href="../../d2/d96/classwheels_1_1rc_ftp.html#a368a7dc259362e10ab59c874d18fd1a4" title="读取文件大小响应函数" alt="" coords="142,5,290,32"/>
<area shape="poly" title=" " alt="" coords="94,16,126,16,126,21,94,21"/>
</map>
</div>

</div>
</div>
<a id="abe03125733ec7a3f07754578f06a3781" name="abe03125733ec7a3f07754578f06a3781"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe03125733ec7a3f07754578f06a3781">&#9670;&#160;</a></span>on_nlist()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t on_nlist </td>
          <td>(</td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>ptr</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>size</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>nmemb</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>userdata</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取文件列表的回调操作函数 </p>

<p class="definition">在文件 <a class="el" href="../../de/de3/ftp_8cpp_source.html">ftp.cpp</a> 第 <a class="el" href="../../de/de3/ftp_8cpp_source.html#l00189">189</a> 行定义.</p>

</div>
</div>
<a id="af7f64eceebc17730a633c60e90147b75" name="af7f64eceebc17730a633c60e90147b75"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7f64eceebc17730a633c60e90147b75">&#9670;&#160;</a></span>on_upld_progress()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int on_upld_progress </td>
          <td>(</td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>clientp</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">curl_off_t</td>          <td class="paramname"><span class="paramname"><em>dltotal</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">curl_off_t</td>          <td class="paramname"><span class="paramname"><em>dlnow</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">curl_off_t</td>          <td class="paramname"><span class="paramname"><em>ultotal</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">curl_off_t</td>          <td class="paramname"><span class="paramname"><em>ulnow</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../de/de3/ftp_8cpp_source.html">ftp.cpp</a> 第 <a class="el" href="../../de/de3/ftp_8cpp_source.html#l00154">154</a> 行定义.</p>

</div>
</div>
<a id="ad907952d4633c663a0140a166182e127" name="ad907952d4633c663a0140a166182e127"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad907952d4633c663a0140a166182e127">&#9670;&#160;</a></span>onChkInst()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t onChkInst </td>
          <td>(</td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>buffer</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>size</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>nitems</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>userdata</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>检查服务器支持的指令操作数据回调函数。这个函数有CURL调用 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">buffer[</td><td>IN ] 传入的数据的内容指针 </td></tr>
    <tr><td class="paramname">size[</td><td>IN ] 总是为1 </td></tr>
    <tr><td class="paramname">nitems[</td><td>IN ] 传入的数据的长度 </td></tr>
    <tr><td class="paramname">userdata[</td><td>IN ] FTP对象指针，用来获取调用的 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>操作成功返回nitems，否则返回0以告诉CURL操作错误 </dd></dl>

<p class="definition">在文件 <a class="el" href="../../de/de3/ftp_8cpp_source.html">ftp.cpp</a> 第 <a class="el" href="../../de/de3/ftp_8cpp_source.html#l00041">41</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/de3/ftp_8cpp_ad907952d4633c663a0140a166182e127_cgraph.png" border="0" usemap="#ade/de3/ftp_8cpp_ad907952d4633c663a0140a166182e127_cgraph" alt=""/></div>
<map name="ade/de3/ftp_8cpp_ad907952d4633c663a0140a166182e127_cgraph" id="ade/de3/ftp_8cpp_ad907952d4633c663a0140a166182e127_cgraph">
<area shape="rect" title="检查服务器支持的指令操作数据回调函数。这个函数有CURL调用" alt="" coords="5,5,87,32"/>
<area shape="rect" href="../../d2/d96/classwheels_1_1rc_ftp.html#af753d5035f92140059811ef91a3a65c9" title="响应检查FTP支持指令的情况" alt="" coords="135,5,317,32"/>
<area shape="poly" title=" " alt="" coords="87,16,119,16,119,21,87,21"/>
</map>
</div>

</div>
</div>
<a id="ad30d7938b76217dec401f1e4872fe70e" name="ad30d7938b76217dec401f1e4872fe70e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad30d7938b76217dec401f1e4872fe70e">&#9670;&#160;</a></span>onConnectCb()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t onConnectCb </td>
          <td>(</td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>ptr</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em></em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>nmemb</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>userdata</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>连接成功操作回调函数 </p>

<p class="definition">在文件 <a class="el" href="../../de/de3/ftp_8cpp_source.html">ftp.cpp</a> 第 <a class="el" href="../../de/de3/ftp_8cpp_source.html#l00054">54</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/de3/ftp_8cpp_ad30d7938b76217dec401f1e4872fe70e_cgraph.png" border="0" usemap="#ade/de3/ftp_8cpp_ad30d7938b76217dec401f1e4872fe70e_cgraph" alt=""/></div>
<map name="ade/de3/ftp_8cpp_ad30d7938b76217dec401f1e4872fe70e_cgraph" id="ade/de3/ftp_8cpp_ad30d7938b76217dec401f1e4872fe70e_cgraph">
<area shape="rect" title="连接成功操作回调函数" alt="" coords="5,31,107,57"/>
<area shape="rect" href="../../d2/d96/classwheels_1_1rc_ftp.html#a4088d2e9ea38594ae90d1442735a64f2" title="响应连接操作的过程中的数据回调" alt="" coords="163,5,348,32"/>
<area shape="poly" title=" " alt="" coords="107,35,147,30,148,35,107,40"/>
<area shape="rect" href="../../d2/d96/classwheels_1_1rc_ftp.html#aef9602119ae2ab047761aedee7102589" title="ftp对象数据给出错误。虽然这种情况的可能性不大。" alt="" coords="155,56,357,83"/>
<area shape="poly" title=" " alt="" coords="107,48,140,52,139,57,107,53"/>
</map>
</div>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
